Paternal leakage of organelles can improve adaptation to changing environments