A new study shows that dating your boss can lead to a pay bump—but breaking up could cost you nearly one-fifth of your earnings.