Quantum-inspired variational algorithms for partial differential equations: Application to financial derivative pricing