Role of polarization and alignment in photoactuation of nematic elastomers