Energy Loss Function of Solids Assessed by Ion Beam Energy-Loss Measurements: Practical Application to Ta2O5