Magnetic Fe3O4 supported MoS2 nanoflowers as catalyst for the reduction of p-nitrophenol and organic dyes and as an electrochemical sensor for the detection of pharmaceutical samples