Photoregulation of in-plane reorientation of liquid crystals by azobenzenes laterally attached to substrate surfaces