A graduate who vandalised a display case containing the Stone of Destiny at Edinburgh Castle has been handed a community payback order with unpaid work.