Freezing and melting of Ar in mesopores studied by optical transmission