Surface energetics of powders before and after compaction