Measuring Human and AI Values based on Generative Psychometrics with Large Language Models