Heat asymptotics for nonminimal Laplace type operators and application to noncommutative tori