League One club Peterborough have completed the loan signing of central defender Ben Nugent from Cardiff.