Attaching monitoring devices to tyres before or after vulcanization by inserting them inside tyre cavities