Practical solutions for seismic free-surface and internal multiple attenuation based on inversion