Epistemic Model Checking for Knowledge-Based Program Implementation: an Application to Anonymous Broadcast