Alpha decay of heavy and super heavy nuclei with a generalized electrostatic potential