Photocatalytic and magnetic properties of Zn1−xCrxO nanocomposites prepared by a co-precipitation method