Define the substitution reaction with examples?