how are spongy and compact bones alike