Discretization of Models for Electrical Microgrids Preserving Passivity Properties