A new model of solar EUV irradiance variability: 1. Model formulation