added support for acoustic media for periodic boundary conditions