How does mobile device management (MDM) work?