Implementation and characterization of a smart parking system based on 3-axis magnetic sensors