Analytical relations between effective material properties and microporosity: Application to bone mechanics