Google gets patent for using environmental factors gathered through a device's sensors to target ads at users