What device measures its the proper acceleration relative to freefall, and is increasingly used in portable electronic devices and video game controllers to detect the orientation of the device or provide game input?