Electronic structure, magnetic properties and magnetocaloric performance in rare earths (RE) based RE2BaZnO5 (RE = Gd, Dy, Ho, and Er) compounds