Studies on structural, optical, magnetic, and resistive switching properties of doped BiFe1-xCrxO3 thin films