Architecture, Modeling, And Optimization Of Photonic Neural Network Accelerators