Self-consistent field theory and its applications in polymer systems