A semi-analytical model of electron source potential barriers