Financial Derivative and Energy Market Valuation: Theory and Implementation in MATLAB