An experimental setup for dynamic measurement of magnetoelectric effect