Jamie McDonnell was crowned as a world champion after capturing the IBF bantamweight belt with a points win over Julio Ceja in Doncaster.