Oral appliances for the treatment of snoring and obstructive sleep apnea