Ultrasound assisted compaction of pharmaceutical materials