A self-consistent analytical model for the upstream magnetic-field and ion-beam properties in Weibel-mediated collisionless shocks