Applying RLAIF for Code Generation with API-usage in Lightweight LLMs