A comparative study of muonium states in crystalline and amorphous hydrogenated silicon