The Level-Set Approach to Premixed Turbulent Combustion in the Flamelet Regime: Theory and Numerical Implementation