Template method for fabricating interdigitate p-n heterojunction for organic solar cell