A virtual boundary method for compressible flow with application to aeroacoustics of compliant trailing-edges