A de novo implementation of the Anaerobic Digestion Model 1 with application to selected model extensions