Electronic Phase Separation in Magnetic and Superconducting Materials