Photometry of intermediate polars AO Psc and V 1223 Sgr