Theory of unstable laser modes: edge waves and fractality