Production of pulsed ultraslow muons and first MuSR experiments on thin metallic and magnetic films