Localization of electromagnetic energy using a left-handed-medium slab