Photomechanical coupling in photoactive nematic elastomers