Photon polarization tensor and gauge dependence in three-dimensional quantum electrodynamics