Beam tests and calibration of the H1 liquid argon calorimeter with electrons