Advancing towards open-source biophotonic instrumentation for multiphoton imaging and photodynamic therapy