Scientists discover how thalidomide-like drugs fight cancer