Substituted amide derivatives having multimodal activity against pain