Magnetic properties and magnetocaloric effects in Er3−xGdxCo intermetallic compounds