Mediation in the commission of crimes: criminal law aspects