Study of beam halo-formation with the frequency map analysis method