Hierarchy effect on electronic structure and core-to-valence transitions in bone tissue: perspectives in medical nanodiagnostics of mineralized bone