Inverse Designed Shape-Reconfigurable Multifunctional Photonics