‘Going to snap’: Maine mass shooter’s family reached out to sheriff before rampage, documents show