Isogeometric collocation for elastostatics and explicit dynamics