North Korea says the prisoners were subjected to physical and mental torture , and held in solitary confinement for refusing to renounce their ideology .