A molecular dynamics study of ferroelectric nanoparticles immersed in a nematic liquid crystal