Alabama cop headed to federal prison for attacking prisoner in cell