A framework for modelling electroactive biofilms performing direct electron transfer