Characterizing circumgalactic gas around massive ellipticals atz∼ 0.4 – II. Physical properties and elemental abundances