Mapping the structural, electrical, and optical properties of hydrothermally grown phosphorus-doped ZnO nanorods for optoelectronic device applications