added cython functions for photo-current d1 and d2. Also removed default value of parameter in cython functions because it prevents those functions from being called by other cython functions
fixes for calling cython functions without default parameter values