Biologically plausible phosphene simulation for the differentiable optimization of visual cortical prostheses