Studies on corrosion inhibition of mild steel in acid environment: experimental and theoretical approach