Environmental effect on structural, magnetic, and dielectric properties of BFO nanostructure and its solar cell applications