What are the self-diagnostic functions of a magnetic flow meter?