Composite wave variational method for predicting molecular electronic structure