Melinda French Gates has been through some "painful changes" since her divorce from Bill Gates but is hoping that her new book will help others.