Improving Energy Detection Efficiency of Ti-Based Superconducting Transition-Edge Sensors with Optical Cavity