Debye temperature and stiffness of carbon and boron nitride polymorphs from first principles calculations