Nuclear effects in proton decay