Ab initio structural approach on polycristalline Y2-xCaxBaNiO5 compounds