Constructal design of phase change material enclosures used for cooling electronic devices