Poldark screenwriter on how her experience with postnatal depression helped inspire the show