Pātuhitia tēnei: End-to-end Learning of Safe Stimulation Parameters for Cortical Neuroprosthetic Vision