Photonics optimism lifts shares sharply, yet heavy reliance on struggling smartphone market tempers long-term outlook.