PT symmetry breaking and exceptional points for a class of inhomogeneous complex potentials