Optimal risk sharing for law invariant monetary utility functions