Jailing Thai magazine editor for 10 years for rebuking king