Transferring Knowledge for Reinforcement Learning in Contact-Rich Manipulation