Coupled poroelastic waves and electromagnetic fields in layered media