Jada Pinkett Smith to write memoir discussing her ‘complicated marriage’ to Will Smith