Advanced materials for organic solar cells: influence of generation and pH on PAMAM-Based devices