GdBO$_3$ and YBO$_3$ Nanocrystals under Compression