Development of a model for heat storage system using phase change materials in cogeneration units.