Fundamentals and applications of purple bacteria biotechnology for resource recovery from waste