High-precision machined AlN substrate