Applications of the FLUKA Monte Carlo code in high energy and accelerator physics