Cosine bend-linear waveguide digital optical switch with parabolic heater