Fast formation and assembly of finite element matrices with application to isogeometric linear elasticity