Design of a photochromic oscillator to be used as dynamical model of pacemaker neurons