An HBT magnetic sensor with integrated 3-dimensional magnetic structures