On selfinjective algebras of tilted type