Upper critical field Hc2 calculations for the high critical temperature superconductors considering inhomogeneities