Letters show what suspect was thinking months before officer shooting