Recovering multiscale buried anomalies in a two-layered medium