MadMiner: Machine learning-based inference for particle physics