Analysis and experiments of vehicle detection with magnetic sensors in urban environments