Αποστολή με SMS: Block factor-width-two matrices and their applications to semidefinite and sum-of-squares optimization