Optogenetic methods to control excitation and inhibition of neuromuscular activity