The MUSE-Wide Survey: A determination of the Lyman α emitter luminosity function at 3 < z < 6