Formation of magnetic anomaly patterns by dyke injection