Determination of effective medium parameters of an in-line cavity based acoustic metamaterials with visco-thermal losses