Reconfigurable natural interaction in smart environments: approach and prototype implementation