Gravar-mail: Quantitative Model for Reversibly Photoswitchable Sensors