Ultra-compact optical switch using phase-change material