Educational impact on the relationship of environmental knowledge and attitudes