Cambridge-based Vertex Pharmaceuticals has signed a non-binding letter of intent for two buildings on Fan Pier, the company said.