Prosthetic component for monitoring joint health