An optimal joint planning of DGs and electric vehicle charging stations in grid‐connected and islanded microgrids | Synapse