Template synthesis of infrared-transparent metal microcylinders: comparison of optical properties with the predictions of effective medium theory