Periodic models for thin optimal absorbers of electromagnetic radiation